Crate kitsune_p2p_types

source ·
Expand description

Types subcrate for kitsune-p2p.

Re-exports§

Modules§

  • Data structures to be stored in the agent/peer database.
  • utility for lazy init-ing things
  • Types for the bootstrap server
  • Encoding / Decoding utilities.
  • Combinator functions, for more easeful functional programming
  • Kitsune Config Tuning Params
  • Types used for consistency checking during tests or dht health checks. These types describe a protocol that can be implemented to gather statistics on data consistency. This is a first prototype so expect this to change.
  • Re-exported dependencies.
  • Fetch queue types
  • Utilities for helping with metric tracking.
  • Task Aggregation helper utility
  • TLS utils for kitsune
  • Next-gen performance kitsune transport abstractions

Macros§

  • DSL-style macro for generating a serialization protocol message enum.

Structs§

Enums§

Traits§

Functions§

  • Helper function for the common case of returning this boxed future type.
  • Helper function for the common case of returning this boxed future type.
  • Helper function for the common case of returning this boxed future type.
  • Monotonically nondecreasing process tick count, backed by tokio::time::Instant as an i64 to facilitate reference times that may be less than the first call to this function. The returned value is on the scale of microseconds.
  • Get the elapsed process count duration from a captured ProcCount to now. If the duration would be negative, this fn returns a zero Duration.
  • Helper function for the common case of returning this nested Unit type.

Type Aliases§